package startSyncIT;

import app.App;
import advancedGui.AdvancedGui;
import gui.Gui;

public class StartSyncIT {
	
	public static void main(String[] args) {
		
		String version = "1.01b"; // Change version number here
		
		String configFolder = ""; // Make it possible to start the Sync IT program with the config folder on a specific place
		if(args.length > 1) {
			if(args[0].equals("-config")) {
				configFolder = args[1];
			}
		}
		
		App app = new App(version, configFolder);
		app.initObservers();
		if(app.getGuiType().equals("simple")) {
			Gui gui = new Gui(version, app);
			gui.initGuiComponents();
			gui.loadConfigToGui();
			gui.initGuiObservers();
		}
		else if(app.getGuiType().equals("advanced")) {
			AdvancedGui advancedGui = new AdvancedGui(version, app);
			advancedGui.initGuiComponents();
		}
		
	}
}
